﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="gosearch.aspx.cs" Inherits="mysch.gosearch" %>
<%@ Import Namespace="mysch" %>

<%@ Register Assembly="C1.Web.Wijmo.Controls.4, Version=4.0.20133.145, Culture=neutral, PublicKeyToken=9b75583953471eea" Namespace="C1.Web.Wijmo.Controls.C1Pager" TagPrefix="wijmo" %>

<%@ Register Assembly="C1.Web.Wijmo.Controls.4, Version=4.0.20133.145, Culture=neutral, PublicKeyToken=9b75583953471eea" Namespace="C1.Web.Wijmo.Controls.C1GridView" TagPrefix="wijmo" %>

<%@ Register Assembly="C1.Web.Wijmo.Controls.4, Version=4.0.20133.145, Culture=neutral, PublicKeyToken=9b75583953471eea" Namespace="C1.Web.Wijmo.Controls.C1Input" TagPrefix="wijmo" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
      <style type="text/css">
        .simg {
            text-align: center;
            margin-left: 200px;
        }
        .myC1InputText1 {
            width: 85%;
            float: left;
            clear: left;
            height: 40px;
        }
        .sousbtn {
            width: 13%;
            height: 50px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="FeaturedContent" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" runat="server">
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
             <div id ="toptupian" style="width: 100%">
      
    <wijmo:C1InputText ID="C1InputText1" runat="server" CssClass="myC1InputText1" Height="40px"></wijmo:C1InputText>
  &nbsp;  <asp:Button ID="Button1" runat="server" Text="搜索一下" CssClass="sousbtn" OnClick="Button1_Click" />
        </div>
    <wijmo:C1GridView ID="C1GridView1" runat="server" AutogenerateColumns="False" GroupAreaCaption="将这里的一列拖去与那一列分组。" LoadingText="载入中..." Width="100%">
        <Columns>
            <wijmo:C1TemplateField>
                <ItemTemplate>
                      <br>
                      </br>
                标题:    <asp:HyperLink ID="HyperLink1" runat="server" Text='<%# Eval("title") %>' Width="90%" NavigateUrl='<%# Eval("id") %>' Target="_blank"></asp:HyperLink>
                  
                    
                  
                      <br>
                  
                    
                  
                   </br>
                    <asp:HyperLink ID="HyperLink2" runat="server" Font-Underline="False" Text='<%#gosearch.IsChinese(q)?(Eval("content").ToString().IndexOf(q)!=-1?(Eval("content").ToString().Substring(Eval("content").ToString().IndexOf(q)).Length>200?Eval("content").ToString().Substring(Eval("content").ToString().IndexOf(q)).Substring(0,200):Eval("content").ToString().Substring(Eval("content").ToString().IndexOf(q))):(Eval("content").ToString().Length>200?Eval("content").ToString().Substring(0,200):Eval("content").ToString())):( Eval("content").ToString().Substring(Eval("content").ToString().ToLower().IndexOf(q.ToLower())).Length>200? Eval("content").ToString().Substring(Eval("content").ToString().ToLower().IndexOf(q.ToLower())).Substring(0,200):Eval("content").ToString().ToLower().Substring(Eval("content").ToString().ToLower().IndexOf(q.ToLower()))) %>' NavigateUrl='<%# Eval("id") %>' Target="_blank"></asp:HyperLink>
                   
                      <br>
                   
                  </br>
               链接:     <asp:HyperLink ID="HyperLink3" runat="server" Text='<%# Eval("id") %>' NavigateUrl='<%# Eval("id") %>' Target="_blank"></asp:HyperLink>
                   
                  
                      <br>
                   
                  
                    </br>
                     
                </ItemTemplate>
            </wijmo:C1TemplateField>
        </Columns>
    </wijmo:C1GridView>
    <wijmo:C1Pager ID="C1Pager1" runat="server" PageCount="10" AutoPostBack="True" OnPageIndexChanged="C1Pager1_PageIndexChanged" />
    <asp:Label ID="Label1" runat="server" Text="Label"></asp:Label><asp:Label ID="Label2" runat="server" Text="Label"></asp:Label>
           
        </ContentTemplate>
        <Triggers>
            <asp:PostBackTrigger ControlID="Button1" />
        </Triggers>
    </asp:UpdatePanel> 
</asp:Content>
